﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using IAC_2013.com.iac.util;
using IAC_2013.com.iac.action;

namespace IAC_2013.com.iac.action
{
    class WareHouseAction
    {
        static SqlConnection conn = new SqlConnection(DBUtils.CONNECTION_STRING);
        static SqlCommand cmd;
        static SqlDataAdapter da;
        static DataTable tb;
        public static DataTable listWareHouse()
        {
            tb = new DataTable();
            String sql = "select * from kho_hang ";
            cmd = new SqlCommand(sql, conn);
            conn.Open();
            da = new SqlDataAdapter(cmd);
            da.Fill(tb);
            conn.Close();

            return tb;
        }
    }
}
